package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CstCollectionRegistrationMapper;
import com.ruoyi.system.domain.CstCollectionRegistration;
import com.ruoyi.system.service.ICstCollectionRegistrationService;

/**
 * 收款登记Service业务层处理
 * 
 * @author zjw
 * @date 2023-01-04
 */
@Service
public class CstCollectionRegistrationServiceImpl implements ICstCollectionRegistrationService 
{
    @Autowired
    private CstCollectionRegistrationMapper cstCollectionRegistrationMapper;

    /**
     * 查询收款登记
     * 
     * @param collectionId 收款登记主键
     * @return 收款登记
     */
    @Override
    public CstCollectionRegistration selectCstCollectionRegistrationByCollectionId(Long collectionId)
    {
        return cstCollectionRegistrationMapper.selectCstCollectionRegistrationByCollectionId(collectionId);
    }

    /**
     * 查询收款登记列表
     * 
     * @param cstCollectionRegistration 收款登记
     * @return 收款登记
     */
    @Override
    public List<CstCollectionRegistration> selectCstCollectionRegistrationList(CstCollectionRegistration cstCollectionRegistration)
    {
        return cstCollectionRegistrationMapper.selectCstCollectionRegistrationList(cstCollectionRegistration);
    }

    /**
     * 新增收款登记
     * 
     * @param cstCollectionRegistration 收款登记
     * @return 结果
     */
    @Override
    public int insertCstCollectionRegistration(CstCollectionRegistration cstCollectionRegistration)
    {
        return cstCollectionRegistrationMapper.insertCstCollectionRegistration(cstCollectionRegistration);
    }

    /**
     * 修改收款登记
     * 
     * @param cstCollectionRegistration 收款登记
     * @return 结果
     */
    @Override
    public int updateCstCollectionRegistration(CstCollectionRegistration cstCollectionRegistration)
    {
        return cstCollectionRegistrationMapper.updateCstCollectionRegistration(cstCollectionRegistration);
    }

    /**
     * 批量删除收款登记
     * 
     * @param collectionIds 需要删除的收款登记主键
     * @return 结果
     */
    @Override
    public int deleteCstCollectionRegistrationByCollectionIds(Long[] collectionIds)
    {
        return cstCollectionRegistrationMapper.deleteCstCollectionRegistrationByCollectionIds(collectionIds);
    }

    /**
     * 删除收款登记信息
     * 
     * @param collectionId 收款登记主键
     * @return 结果
     */
    @Override
    public int deleteCstCollectionRegistrationByCollectionId(Long collectionId)
    {
        return cstCollectionRegistrationMapper.deleteCstCollectionRegistrationByCollectionId(collectionId);
    }
}
